package com.redhipps.hips.client.io;

import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.redhipps.hips.client.model.Model;

public interface ModelReader<T extends Model> {

  T readPrototype(JSONObject o) throws ModelIOException;

  void readPrototype(JSONObject o, ReaderVisitor visitor) throws ModelIOException;

  T readFully(JSONArray o) throws ModelIOException;

}
